package com.zmzncs.lmtc.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 * @author 霍咨文 on 2019/5/8.
 * @version 1.0
 */

@Configuration
public class WebConfigurer implements WebMvcConfigurer {


    /**
     * 拦截器拦截对应请求
     * @param registry
     */
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //添加自定义拦截器和拦截路径，此处对所有请求进行拦截，除了注册和登录接口
//        registry.addInterceptor(new LogInterceptor());
    }

}
